using System;

namespace Entities
{
	public class BackAction : MobAction
	{
		public BackAction ()
		{
			type = TypeAction.back;
		}
		
		public override MobAction nextAction(Mob mob, Fighter target){
			if (mob.distanceAway() > minbackrange){
				return new BackAction();
			}
			
			return new IdleAction();
		}
	}
}

